package com.pet.review.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value="评论表单对象")
public class ReviewDTO {
    @ApiModelProperty(value = "订单id")
    @NotNull
    private Long orderId;

    @ApiModelProperty(value = "评论内容")
    @NotBlank
    private String reviewText;

    @ApiModelProperty(value = "评分 1~5")
    private Integer rating;
}
